package epay18

import (
	"context"
	"testing"
)

func TestHttpClient_WithdrawApply(t *testing.T) {
	InitHttpClient("GOLDRUSH", "0b987f588c5d4d27a31427905cdaa1d8", "https://api.epay18.com", "https://65.20.73.121:1004/pay/epay18/notify")
	req := WithdrawApplyReq{
		Amount:          "1000.00",
		Channel:         "Withdraw",
		MerchantTradeNo: "202108951943",
		AccountName:     "test",
		BankCardNumber:  "6228480402564890018",
		BankCode:        "ICBC",
		BankName:        "TEST Bank",
	}
	resp, err := Hc.WithdrawApply(context.Background(), &req)
	if err != nil {
		t.Fatal(err)
	}
	t.Logf("%+v", resp)
}
